﻿<studio:PluginControl x:Class="PentaBiz.Studio.Plugins.Sample.SamplePluginControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                   xmlns:studio="clr-namespace:PentaBiz.Studio;assembly=PentaBiz.Studio.Core"
                      xmlns:fluent="clr-namespace:Fluent;assembly=Fluent"
                      xmlns:cloudServer="clr-namespace:PentaBiz.Studio.Plugins.Sample"
                      xmlns:viewModels="clr-namespace:PentaBiz.Studio.Plugins.Sample.ViewModels"

                      mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" 
                     >
    <UserControl.DataContext>
        <viewModels:SamplePluginModel/>
    </UserControl.DataContext>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <ComboBox ItemsSource="{Binding Models}" SelectedValue="{Binding SelectedModel}"/>
        <!--<WpfDynamicUI:DynamicModelControl x:Name="dynamicModelControl" Grid.Row="1" DataContext="{Binding SelectedModel}"/>-->
        <Label Grid.Row="2" Content="{Binding RenderTime, ElementName=dynamicModelControl, Mode=OneWay}"/>
    </Grid>
</studio:PluginControl>
